#ifndef __SWD3E_IMPORT_H__
#define __SWD3E_IMPORT_H__

#include <stdint.h>

#include <SDL2/SDL.h>

#include "swd3e_address.h"
#include "swd3e/fileIO.h"
#include "swd3e/cFILE.h"
#include "swd3e/commButtonClass.h"
#include "swd3e/StringDBmap.h"

typedef int8_t BYTE;
typedef int16_t WORD;
typedef int32_t DWORD;
typedef int64_t QWORD;

typedef uint8_t _BYTE;
typedef uint16_t _WORD;
typedef uint32_t _DWORD;
typedef uint64_t _QWORD;

#define GAME_WIDTH 640
#define GAME_HEIGHT 480

extern SDL_Surface **SS2D_main_surface;
extern SDL_Texture **SS2D_main_texture;
extern SDL_Surface **SS2D_conversion_surface;
extern SDL_Surface **SS2D_bg_surface;
extern SDL_Texture **SS2D_bg_texture;
extern SDL_Rect *SS2D_render_dst_rect;
extern float *SS2D_render_scale_x;
extern float *SS2D_render_scale_y;

extern uint8_t *Run_Fight;
extern uint8_t *is_show_menu;

extern int16_t *ExCommandCount;
extern int16_t *ExCommandNo;

extern uint8_t *ForceSpellMenu;
extern uint8_t *ForceCommandMenu;
extern uint8_t *ForceObsoltMenu;
extern uint8_t *ForceChAttrMenu;

extern int *MainMenu_selectitem;
extern int *fMenu;
extern int *ObsoltSel;

extern rbtree *StringDBmap;

int initSwd3dImport();

#endif
